home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #1
/
Amiga Plus CD - 1997 - No. 01.iso
/
pd
/
programmierung
/
mesa-1.2.8
/
mklib.netbsd
< prev
next >
Wrap
Text File
|
1996-05-27
|
525b
|
28 lines
#!/bin/sh
# Make a NetBSD shared library
# contributed by Michael Graff (explorer@flame.org)
# First argument is name of output library
# Rest of arguments are object files
set -x
LIBRARY=`basename $1 .so`
shift 1
OBJECTS=$*
VERSION="1.2.8"
echo "Building PIC library $LIBRARY"
rm -f ${LIBRARY}_pic.a ${LIBRARY}.so.${VERSION}
ar cq ${LIBRARY}_pic.a ${OBJECTS}
ranlib ${LIBRARY}_pic.a
ld -x -Bshareable -Bforcearchive -o ${LIBRARY}.so.${VERSION} ${LIBRARY}_pic.a
cp ${LIBRARY}_pic.a ${LIBRARY}.so.${VERSION} ../lib